import request from "@/plugins/request";

var pre = "/inteCater/foodBeverages/snugReserve";

if (process.env.NODE_ENV !== "development") {
  pre = "/api/sa/smar-catering" + pre;
}

// 查询包间预定
export function getPageForSnugBookeInfo(data) {
  return request({
    url: `${pre}/getPageForSnugBookeInfo`,
    method: "post",
    data,
  });
}

// 新增包间预定
export function addBook(data) {
  return request({
    url: `${pre}/addBook`,
    method: "post",
    data,
  });
}

// 取消包间
export function editBookState(data) {
  return request({
    url: `${pre}/editBookState`,
    method: "post",
    data,
  });
}

// 获取未被占用的包间信息
export function getListSnugBookeInfo(data) {
  return request({
    url: `${pre}/getListSnugBookeInfo`,
    method: "post",
    data,
  });
}
